widget: Update path unconditionally in gtk_widget_reset_style()
authorBenjamin Otte <otte@redhat.com>
Sun, 27 Mar 2011 00:53:04 +0000 (01:53 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 27 Mar 2011 00:53:04 +0000 (01:53 +0100)
Also, don't set the new path twice on the style context.

gtk/gtkwidget.c

index 9a6137dcbdc27b52cf31b0bfa455af1ffe138a69..f64841b5fc600d8491c4bcfa157b636298d84d2a 100644 (file)
@@ -8692,12 +8692,7 @@ _gtk_widget_propagate_screen_changed (GtkWidget    *widget,
 static void
 reset_style_recurse (GtkWidget *widget, gpointer data)
 {
-  if (widget->priv->context)
-    {
-      _gtk_widget_update_path (widget);
-      gtk_style_context_set_path (widget->priv->context,
-                                  widget->priv->path);
-    }
+  _gtk_widget_update_path (widget);
 
   if (GTK_IS_CONTAINER (widget))
     gtk_container_forall (GTK_CONTAINER (widget),